package com.cetcs.kmga.dataManager.entity.global;

/**
 * Created by XingWen on 2016/4/12.
 */
public enum LogLevelEnum {
    高("高", "4"), 中("中", "2"), 低("低", "1"), 信息("信息", "0");

    private String _value;
    private String _name;

    private LogLevelEnum(String value, String name) {
        _value = value;
        _name = name;
    }

    public static String getName(String index) {
        for (LogLevelEnum c : LogLevelEnum.values()) {
            if (c.get_value().equals(index)) {
                return c._name;
            }
        }
        return null;
    }

    public String value() {
        return _value;
    }

    public String getName() {
        return _name;
    }

    public String get_name() {
        return _name;
    }

    public void set_name(String _name) {
        this._name = _name;
    }

    public String get_value() {
        return _value;
    }

    public void set_value(String _value) {
        this._value = _value;
    }
}
